all: client server 
# all: server

client:protobuf_client.cpp request.pb.cc ../include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../include -L../lib -lmuduo_net -lmuduo_base  -lprotobuf -lz -pthread
server:protobuf_server.cpp ../include/muduo/proto/codec.cc request.pb.cc
	g++ -o $@ $^ -std=c++11 -I../include -L../lib -lmuduo_net -lmuduo_base -lprotobuf -pthread -lz 

.PHONY:clean
clean:
	rm -f client server